package IO.stream;

import java.io.BufferedReader;
import java.io.InputStream;
import java.io.IOException;
import java.io.InputStreamReader;

public class BufferCharStream {
    public static void main(String[] args) {
        try {
            InputStream fis = System.in;
            InputStreamReader dis = new InputStreamReader(fis);
            BufferedReader reader = new BufferedReader(dis);
            String s;
            while ((s = reader.readLine()) != null) {
                System.out.println("read: " + s);
            }
            dis.close();
        } catch (IOException e) {
            System.out.println(e);
        }
    }
}
